package xyz.jcat.biz.member.web.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.jcat.common.auth.UserContextHolder;
import xyz.jcat.common.web.Resp;

@Slf4j
@RestController
public class MemberController {

    @GetMapping("/info")
    public Resp getMemberInfo() {
        //TODO
        return Resp.ok("会员："+ UserContextHolder.getInstance().getUserId());
    }
}
